<?php

declare(strict_types=1);

namespace App\Amqp\Producer;

use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;

/**
 * SMSSendProducer
 * @Producer(exchange="sms-send", routingKey="sms-send")
 */
class SMSSendProducer extends ProducerMessage
{

    public function __construct($data)
    {
        echo "date:".date('Y-m-d H:i:s');
        var_dump("send msg:".json_encode($data));
        $this->payload = $data;
    }
}
